package qldc.pm.qlktcsdldc.emun;



public enum ThongTinThayDoiEnum {
	ANHCHANDUNG("anh-chan-dung",2),
	HOVATEN("ho-va-ten", 3),
	NTNSINH("ngay-thang-nam-sinh", 4), 
	GIOITINH("gioi-tinh", 5),
	NOISINH("noi-sinh",6),
	QUEQUAN("que-quan",7),
	DANTOC("dan-toc", 8),
	TONGIAO("ton-giao", 9),
	QUOCTICH("quoc-tich", 10), 
	CMND("chung-minh-nhan-dan", 11),
	HOCHIEU("ho-chieu", 12),
	THUONGTRU("noi-thuong-tru", 13),
	NOIOHIENTAI("noi-o-hien-tai", 14),
	HOTENCHA("ho-va-ten-cua-cha", 15),
	SDDCHA("so-dinh-danh-ca-nhan-cua-cha", 16),
	QUOCTICHCHA("quoc-tich-cua-cha", 17),
	HOTENME("ho-va-ten-cua-me", 18),
	SDDME("so-dinh-danh-ca-nhan-cua-me", 19),
	QUOCTICHME("quoc-tich-cua-me",20),
	HOTENVOCHONG("ho-va-ten-cua-vo-hoac-chong",21),
	SDDVOCHONG("so-dinh-danh-ca-nhan-cua-vo-hoac-chong",22),
	QUOCTICHVOCHONG("quoc-tich-cua-vo-hoac-chong",23),
	HOTENCHUHO("ho-va-ten-chu-ho",24),
	QUANHECHUHO("quan-he-voi-chu-ho",25),
	SOSOHOKHAU("so-so-ho-khau",26),
	//LOAIHO("loai-ho",27),
	SOHSHK("so-ho-so-ho-khau",28),
	NGHENGHIEP("nghe-nghiep",29),
	NOILAMVIEC("noi-lam-viec",30),
	ODAUDEN("o-dau-den",31),
	NGAYDEN("ngay-den",32),
	LYDODEN("ly-do-den",33),
	CHUYENDIDAU("chuyen-di-dau",34),
	NGAYCHUYEN("ngay-chuyen",35),
	LYDOCHUYEN("ly-do-chuyen",36);	
	private String key;
	private long value;
	
	
	ThongTinThayDoiEnum(String key, long value) {
		this.setKey(key);
		this.setValue(value);
	}

	public String getKey() {
		return key;
	}

	public void setKey(String key) {
		this.key = key;
	}

	public long getValue() {
		return value;
	}

	public void setValue(long value) {
		this.value = value;
	}

	public static ThongTinThayDoiEnum getByValue(long value){
		for (ThongTinThayDoiEnum thongTinThayDoiEnum : ThongTinThayDoiEnum.values()) {
			if(thongTinThayDoiEnum.getValue() == value)
				return thongTinThayDoiEnum;
		}
		return null;
	}
}

